<%--
  Created by IntelliJ IDEA.
  User: whb
  Date: 2024/5/15
  Time: 14:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%
    Integer id = (Integer) request.getAttribute("id");
    String name = (String) request.getAttribute("name");
    Integer age = (Integer) request.getAttribute("age");
    String height = (String) request.getAttribute("height");
    String school = (String) request.getAttribute("school");
%>

<body style='background:pink'>

<div style='width:1000px;margin:0 auto; text-align:center'>
    <h1>学生数据修改</h1>
    <form role='form' method='post' action='crud?type=update'>
        <div class='form-group'>
            <label for='name'>id</label>
            <input readonly=\"readonly\" type='text' class='form-control' value=<%=id%> name='id' id='id'
                   placeholder='请输入id'>
        </div>
        <div class='form-group'>
            <label for='name'>name</label>
            <input type='text' class='form-control' value='<%=name%>' name='name' id='name'
                   placeholder='请输入name'>
        </div>
        <div class='form-group'>
            <label for='name'>age</label>
            <input type='text' class='form-control' value='<%=age%>' name='age' id='age'
                   placeholder='请输入age'>
        </div>
        <div class='form-group'>
            <label for='name'>height</label>
            <input type='text' class='form-control' value='<%=height%>'
                   name='height' id='height' placeholder='请输入height'>
        </div>
        <div class='form-group'>
            <label for='name'>school</label>
            <input type='text' class='form-control'
                   value='<%=school%>' name='school' id='school'
                   placeholder='请输入school'>
        </div>
        <button>修改</button>

    </form>
</div>
</body>
</html>
